package com.tledu.production.service.system;

import com.tledu.production.model.system.SysUser;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/15  21:39
 */
public interface ISysUserService {
    //登录
    SysUser login(String username, String password);

    //查询所有
    List<SysUser> findAll();

    //根据id查询
    SysUser findById(String id);

    //添加
    int add(SysUser sysUser);

    //编辑
    int edit(SysUser sysUser);

    //删除(可批量)
    int batchDel(String[] ids, SysUser sysUser);

    //模糊查询
    List<SysUser> search(String type, String searchText);

    //用户锁定与取消锁定
    int lock(String locked, String id, SysUser sysUser);

}
